﻿using Prism.DryIoc;
using Prism.Ioc;
using Prism.Modularity;
using System.Configuration;
using System.Data;
using System.Windows;
using WpfForPrism.Views;

namespace WpfForPrism
{
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : PrismApplication
	{
		/// <summary>
		/// 设置启动页
		/// </summary>
		/// <returns></returns>
		/// <exception cref="NotImplementedException"></exception>
		protected override Window CreateShell()
		{
			return Container.Resolve<MainWindow>();
		}

		/// <summary>
		/// 注入服务
		/// </summary>
		/// <param name="containerRegistry"></param>
		/// <exception cref="NotImplementedException"></exception>
		protected override void RegisterTypes(IContainerRegistry containerRegistry)
		{
			//containerRegistry.RegisterForNavigation<UCA>();
			//containerRegistry.RegisterForNavigation<UCB>();
			//containerRegistry.RegisterForNavigation<UCC>();
		}

		protected override IModuleCatalog CreateModuleCatalog()
		{
			return new DirectoryModuleCatalog() { ModulePath = @".\Modules" };
		}
	}

}
